//
//  ViewController.swift
//  EasyTrademarkRegqurySearch
//
//  Created by 伊伊 on 2024/2/27.
//

import UIKit

class BaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view.
        self.view.backgroundColor = .white
       
    }


}


extension BaseViewController{
   private func createCusBackButton(){
        let btn = UIButton()
        btn.backgroundColor = .red
        self.navigationController?.navigationBar.addSubview(btn)
        btn.setImage(UIImage.init(named: "back"), for: .normal)
        btn.snp.makeConstraints { make in
            make.left.equalToSuperview().offset(0)
            make.centerY.equalTo(btn.superview!)
            make.size.equalTo(CGSize(width: 37.5, height: 44))
        }
        btn.addTarget(self, action: #selector(goback), for: .touchUpInside)
       // self.backButton = btn
        self.navigationItem.hidesBackButton = true
     
    }
    
    
    
    
   @objc private func goback(){
        self.navigationController?.popViewController(animated: true)
    }
}

extension BaseViewController{
    
    
    
    
    override var preferredStatusBarStyle: UIStatusBarStyle{
        return .lightContent
    }
    
    
}

